package com.symria.server.po;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="SYS_MESSAGE")
public class SysMessage {
	private int id;
	private String title;
	private Integer createUser;
	private Date createDate;
	private String linkType;
	private String type;
	private String link;
	private Integer receiveId;
	private String receivedType;
	private Integer receiveRole;
	private String content;
	private String readTag;
	private String state;
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@Column(name = "TITLE", nullable = false, length = 64)
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	@Column(name = "CREATE_USER", nullable = false, length = 11)
	public int getCreateUser() {
		return createUser;
	}
	public void setCreateUser(int createUser) {
		this.createUser = createUser;
	}
	@Column(name = "CREATE_DATE", nullable = false)
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@Column(name = "LINK_TYPE", nullable = false, length = 1)
	public String getLinkType() {
		return linkType;
	}
	public void setLinkType(String linkType) {
		this.linkType = linkType;
	}
	@Column(name = "TYPE", nullable = false, length = 1)
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "LINK", nullable = false, length = 256)
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	@Column(name = "RECEIVE_ID", nullable = false, length = 11)
	public Integer getReceiveId() {
		return receiveId;
	}
	public void setReceiveId(Integer receiveId) {
		this.receiveId = receiveId;
	}
	@Column(name = "RECEIVE_TYPE", nullable = false, length = 1)
	public String getReceivedType() {
		return receivedType;
	}
	public void setReceivedType(String receivedType) {
		this.receivedType = receivedType;
	}
	@Column(name = "RECEIVE_ROLE", nullable = false, length = 11)
	public Integer getReceiveRole() {
		return receiveRole;
	}
	public void setReceiveRole(Integer receiveRole) {
		this.receiveRole = receiveRole;
	}
	@Column(name = "CONTENT", nullable = false, length = 1024)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Column(name = "READ_TAG", nullable = false, length = 1)
	public String getReadTag() {
		return readTag;
	}
	public void setReadTag(String readTag) {
		this.readTag = readTag;
	}
	public String getState() {
		return state;
	}
	@Column(name = "STATE", nullable = false, length = 1)
	public void setState(String state) {
		this.state = state;
	}
	
	
	
}
